package com.threeti.mecool.core.infrastructure.persistence.message;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.threeti.mecool.core.domain.model.message.MobileMessage;

public interface MobileMessageRepository extends JpaRepository<MobileMessage, Long> {

	Page<MobileMessage> findByReceivedOnIsNotNull(Pageable pageable);


    Page findByCreator(String creator, Pageable pageable);

    Page findByCreatorAndReceivedOnIsNotNull(String creator, Pageable pageable);
}
